package com.jd.component.jimdb.impl;

import com.jd.component.jimdb.JimdbClusterService;
import com.jd.jim.cli.Cluster;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class JimdbClusterServiceImpl implements JimdbClusterService {


    @Resource(name = "jimClient")
    private Cluster cluster;

    @Override
    public String hGet(String key, String filed) {
        return cluster.hGet(key, filed);
    }

    @Override
    public Boolean hSet(String key, String filed, String value) {

        return cluster.hSet(key, filed, value);
    }
}
